home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / beeper1.zip / BEEP.ASM next >
Assembly Source File  |  1991-06-05  |  679b  |  29 lines

  1. ; BEEP.COM by Duane Paulson 06/05/91.
  2. ;  Sounds system beeper 2 times.
  3. ;  Created using comtemp.asm template by Chuck Nelson; (c) NELSOFT Software.
  4. ;  All rights reserved. Used by permission.
  5. ;  Comtemp.asm is included in The PC Assembler Helper and Tutor by
  6. ;  Chuck Nelson, downloadable as "PCTUTOR.xxx".
  7.  
  8. COMSEG  SEGMENT  PUBLIC  'CODE'
  9.  
  10.     ASSUME    cs:COMSEG, ds:COMSEG, es:COMSEG, ss:COMSEG
  11.  
  12. ORG    100h
  13.  
  14. main    proc    NEAR
  15.  
  16. start:    mov     ax,0E07h    ; TTY output - ascii 7 (beep)
  17.     mov    bh,0        ; primary video page
  18.     int    10h        ; call bios
  19.     int    10h        ; call bios
  20.  
  21.     mov    ax,4C00h    ; exit with 0 exit code
  22.     int    21h        ; call dos and exit
  23.  
  24. main    endp
  25.  
  26. COMSEG    ENDS
  27.  
  28. END    start
  29.